home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / ComponentIncludes / AVComponents.k.h next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  8.9 KB  |  195 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AVComponents.k.h
  3.  
  4.      Contains:    Standard includes for standard AV panels
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __AVCOMPONENTS_K__
  18. #define __AVCOMPONENTS_K__
  19.  
  20. #include <AVComponents.h>
  21.  
  22. /*
  23.     Example usage:
  24.  
  25.         #define AVENGINECOMPONENT_BASENAME()    Fred
  26.         #define AVENGINECOMPONENT_GLOBALS()    FredGlobalsHandle
  27.         #include <AVComponents.k.h>
  28.  
  29.     To specify that your component implementation does not use globals, do not #define AVENGINECOMPONENT_GLOBALS
  30. */
  31. #ifdef AVENGINECOMPONENT_BASENAME
  32.     #ifndef AVENGINECOMPONENT_GLOBALS
  33.         #define AVENGINECOMPONENT_GLOBALS() 
  34.         #define ADD_AVENGINECOMPONENT_COMMA 
  35.     #else
  36.         #define ADD_AVENGINECOMPONENT_COMMA ,
  37.     #endif
  38.     #define AVENGINECOMPONENT_GLUE(a,b) a##b
  39.     #define AVENGINECOMPONENT_STRCAT(a,b) AVENGINECOMPONENT_GLUE(a,b)
  40.     #define ADD_AVENGINECOMPONENT_BASENAME(name) AVENGINECOMPONENT_STRCAT(AVENGINECOMPONENT_BASENAME(),name)
  41.  
  42.     EXTERN_API( ComponentResult  ) ADD_AVENGINECOMPONENT_BASENAME(GetFidelity) (AVENGINECOMPONENT_GLOBALS() ADD_AVENGINECOMPONENT_COMMA DisplayIDType  displayID, DMFidelityType * engineFidelity);
  43.  
  44.     EXTERN_API( ComponentResult  ) ADD_AVENGINECOMPONENT_BASENAME(TargetDevice) (AVENGINECOMPONENT_GLOBALS() ADD_AVENGINECOMPONENT_COMMA DisplayIDType  displayID);
  45.  
  46. #endif    /* AVENGINECOMPONENT_BASENAME */
  47.  
  48. /*
  49.     Example usage:
  50.  
  51.         #define AVPANEL_BASENAME()    Fred
  52.         #define AVPANEL_GLOBALS()    FredGlobalsHandle
  53.         #include <AVComponents.k.h>
  54.  
  55.     To specify that your component implementation does not use globals, do not #define AVPANEL_GLOBALS
  56. */
  57. #ifdef AVPANEL_BASENAME
  58.     #ifndef AVPANEL_GLOBALS
  59.         #define AVPANEL_GLOBALS() 
  60.         #define ADD_AVPANEL_COMMA 
  61.     #else
  62.         #define ADD_AVPANEL_COMMA ,
  63.     #endif
  64.     #define AVPANEL_GLUE(a,b) a##b
  65.     #define AVPANEL_STRCAT(a,b) AVPANEL_GLUE(a,b)
  66.     #define ADD_AVPANEL_BASENAME(name) AVPANEL_STRCAT(AVPANEL_BASENAME(),name)
  67.  
  68.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(FakeRegister) (AVPANEL_GLOBALS());
  69.  
  70.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(SetCustomData) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA long  theCustomData);
  71.  
  72.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(GetDitl) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA Handle * ditl);
  73.  
  74.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(GetTitle) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA StringPtr  title);
  75.  
  76.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(Install) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DialogPtr  dialog, long  itemOffset);
  77.  
  78.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(Event) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DialogPtr  dialog, long  itemOffset, EventRecord * event, short * itemHit, Boolean * handled);
  79.  
  80.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(Item) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DialogPtr  dialog, long  itemOffset, short  itemNum);
  81.  
  82.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(Remove) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DialogPtr  dialog, long  itemOffset);
  83.  
  84.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(ValidateInput) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA Boolean * ok);
  85.  
  86.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(GetSettingsIdentifiers) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA short * theID, OSType * theType);
  87.  
  88.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(GetSettings) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA Handle * userDataHand, long  flags, DialogPtr  theDialog, long  itemsOffset);
  89.  
  90.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(SetSettings) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA Handle  userDataHand, long  flags, DialogPtr  theDialog, long  itemsOffset);
  91.  
  92.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(GetFidelity) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DisplayIDType  displayID, DMFidelityType * panelFidelity);
  93.  
  94.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(ComponentTargetDevice) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA DisplayIDType  displayID, DialogPtr  theDialog, long  itemsOffset);
  95.  
  96.     EXTERN_API( ComponentResult  ) ADD_AVPANEL_BASENAME(ComponentGetPanelClass) (AVPANEL_GLOBALS() ADD_AVPANEL_COMMA ResType * panelClass, ResType * subClass, Ptr  reserved1, Ptr  reserved2);
  97.  
  98. #endif    /* AVPANEL_BASENAME */
  99.  
  100. /*
  101.     Example usage:
  102.  
  103.         #define AVPORT_BASENAME()    Fred
  104.         #define AVPORT_GLOBALS()    FredGlobalsHandle
  105.         #include <AVComponents.k.h>
  106.  
  107.     To specify that your component implementation does not use globals, do not #define AVPORT_GLOBALS
  108. */
  109. #ifdef AVPORT_BASENAME
  110.     #ifndef AVPORT_GLOBALS
  111.         #define AVPORT_GLOBALS() 
  112.         #define ADD_AVPORT_COMMA 
  113.     #else
  114.         #define ADD_AVPORT_COMMA ,
  115.     #endif
  116.     #define AVPORT_GLUE(a,b) a##b
  117.     #define AVPORT_STRCAT(a,b) AVPORT_GLUE(a,b)
  118.     #define ADD_AVPORT_BASENAME(name) AVPORT_STRCAT(AVPORT_BASENAME(),name)
  119.  
  120.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetAVDeviceFidelity) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVIDType  deviceAVID, DMFidelityType * portFidelity);
  121.  
  122.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetWiggle) (AVPORT_GLOBALS() ADD_AVPORT_COMMA Boolean * wiggleDevice);
  123.  
  124.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(SetWiggle) (AVPORT_GLOBALS() ADD_AVPORT_COMMA Boolean  wiggleDevice);
  125.  
  126.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetName) (AVPORT_GLOBALS() ADD_AVPORT_COMMA Str255  portName);
  127.  
  128.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetGraphicInfo) (AVPORT_GLOBALS() ADD_AVPORT_COMMA PicHandle * thePict, Handle * theIconSuite, AVLocationPtr  theLocation);
  129.  
  130.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(SetActive) (AVPORT_GLOBALS() ADD_AVPORT_COMMA Boolean  setActive);
  131.  
  132.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetActive) (AVPORT_GLOBALS() ADD_AVPORT_COMMA Boolean * isPortActive, Boolean * portCanBeActivated, void * reserved);
  133.  
  134.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetAVID) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVIDType * avPortID);
  135.  
  136.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(SetAVID) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVIDType  avPortID);
  137.  
  138.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(SetDeviceAVID) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVIDType  avDeviceID);
  139.  
  140.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetDeviceAVID) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVIDType * avDeviceID);
  141.  
  142.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetPowerState) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVPowerStatePtr  getPowerState);
  143.  
  144.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(SetPowerState) (AVPORT_GLOBALS() ADD_AVPORT_COMMA AVPowerStatePtr  setPowerState);
  145.  
  146.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetMakeAndModel) (AVPORT_GLOBALS() ADD_AVPORT_COMMA DisplayIDType  theDisplayID, ResType * manufacturer, UInt32 * model, UInt32 * serialNumber);
  147.  
  148.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetInterfaceSignature) (AVPORT_GLOBALS() ADD_AVPORT_COMMA OSType * interfaceSignature);
  149.  
  150.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetManufactureInfo) (AVPORT_GLOBALS() ADD_AVPORT_COMMA DisplayIDType  theDisplayID, DMMakeAndModelPtr  theMakeAndModel);
  151.  
  152.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(CheckTimingMode) (AVPORT_GLOBALS() ADD_AVPORT_COMMA DisplayIDType  theDisplayID, VDDisplayConnectInfoPtr  connectInfo, VDTimingInfoPtr  modeTiming, UInt32  reserved);
  153.  
  154.     EXTERN_API( ComponentResult  ) ADD_AVPORT_BASENAME(GetDisplayTimingInfo) (AVPORT_GLOBALS() ADD_AVPORT_COMMA VDTimingInfoPtr  modeTiming, UInt32  requestedVersion, DMDisplayTimingInfoPtr  modeInfo, UInt32  reserved);
  155.  
  156. #endif    /* AVPORT_BASENAME */
  157.  
  158. /*
  159.     Example usage:
  160.  
  161.         #define AVDEVICE_BASENAME()    Fred
  162.         #define AVDEVICE_GLOBALS()    FredGlobalsHandle
  163.         #include <AVComponents.k.h>
  164.  
  165.     To specify that your component implementation does not use globals, do not #define AVDEVICE_GLOBALS
  166. */
  167. #ifdef AVDEVICE_BASENAME
  168.     #ifndef AVDEVICE_GLOBALS
  169.         #define AVDEVICE_GLOBALS() 
  170.         #define ADD_AVDEVICE_COMMA 
  171.     #else
  172.         #define ADD_AVDEVICE_COMMA ,
  173.     #endif
  174.     #define AVDEVICE_GLUE(a,b) a##b
  175.     #define AVDEVICE_STRCAT(a,b) AVDEVICE_GLUE(a,b)
  176.     #define ADD_AVDEVICE_BASENAME(name) AVDEVICE_STRCAT(AVDEVICE_BASENAME(),name)
  177.  
  178.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(GetName) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA Str255  portName);
  179.  
  180.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(GetGraphicInfo) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA PicHandle * thePict, Handle * theIconSuite, AVLocationPtr  theLocation);
  181.  
  182.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(GetPowerState) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA AVPowerStatePtr  getPowerState);
  183.  
  184.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(SetPowerState) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA AVPowerStatePtr  setPowerState);
  185.  
  186.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(GetAVID) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA AVIDType * avDeviceID);
  187.  
  188.     EXTERN_API( ComponentResult  ) ADD_AVDEVICE_BASENAME(SetAVID) (AVDEVICE_GLOBALS() ADD_AVDEVICE_COMMA AVIDType  avDeviceID);
  189.  
  190. #endif    /* AVDEVICE_BASENAME */
  191.  
  192.  
  193. #endif /* __AVCOMPONENTS_K__ */
  194.  
  195.